package com.inspur.xiaoju.service;

import com.inspur.xiaoju.dto.CreateWorkspaceMemberDto;
import com.inspur.xiaoju.dto.DeleteWorkspaceMemberDto;
import com.inspur.xiaoju.dto.UpdateWorkspaceMemberDto;
import com.inspur.xiaoju.model.WorkspaceMember;

import java.util.List;
import java.util.Map;

public interface WorkspaceMemberService {
    WorkspaceMember create(CreateWorkspaceMemberDto createDto);
    Map<String, Object> batchCreate(String workspaceId, List<Map<String, String>> members, String creator, String creatorId);
    List<WorkspaceMember> findAllByUserId(String userId);
    List<WorkspaceMember> findAllByWorkspaceId(String workspaceId);
    WorkspaceMember findOne(String workspaceId, String userId);
    Map<String, Object> updateRole(UpdateWorkspaceMemberDto updateDto, String operator, String operatorId);
    Map<String, Object> deleteMember(DeleteWorkspaceMemberDto deleteDto);
    List<WorkspaceMember> batchSearchByWorkspace(List<String> workspaceIds);
}